package org.example.hm.dt;

/**
 * @version: 1
 * @description: java
 * @author: java
 * @create: 2020-06-02 11:42
 **/
public class Demo {

    public static void main(String[] args) {
        Fu f = new Zi("",1);
        f.eat();
    }

}

class Fu {

    private String a;
    private int b;

    public Fu(String a, int b) {
        this.a = a;
        this.b = b;
    }

    public void eat() {
        System.err.println("父亲吃饭");
    }
}

class Zi extends Fu {

    public Zi(String a, int b) {
        super(a, b);
        System.out.println("aaa");
    }

    @Override
    public void eat() {
        System.out.println("儿子吃饭");
        super.eat();
    }
}